package com.liu.my_blog_system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (TbRefreshToken)表实体类
 *
 * @author liuchengjie
 * @since 2021-04-14 14:41:04
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbRefreshToken extends Model<TbRefreshToken> {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String refreshToken;

    private String userId;

    private String tokenKey;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
